package com.dieusoft.box.ship.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dieusoft.box.ship.entity.ContainerCargoInfo;
import com.dieusoft.box.ship.mapper.ContainerCargoInfoMapper;
import com.dieusoft.box.ship.service.ContainerCargoInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 箱货信息
 *
 * @author
 * @date: Sat Jan 16 14:36:33 CST 2021
 */

@Service
public class ContainerCargoInfoServiceImpl extends ServiceImpl<ContainerCargoInfoMapper, ContainerCargoInfo> implements ContainerCargoInfoService {

    @Autowired
    private ContainerCargoInfoMapper containerCargoInfoMapper;

    @Override
    public List<ContainerCargoInfo> findByShipId(String shipId) {
        return containerCargoInfoMapper.findByShipId(shipId);
    }

    @Override
    public boolean deleteAll() {
        return containerCargoInfoMapper.deleteAll();
    }
}
